package com.ziyun.erp.modules.capital.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableId;
import com.baomidou.mybatisplus.annotations.TableName;
import com.ziyun.erp.common.e.capital.ApplyStatusEnum;
import com.ziyun.erp.common.e.capital.ApplyTypeEnum;
import com.ziyun.erp.common.e.capital.MerchantTypeEnum;
import com.ziyun.erp.common.utils.EnumUtil;

import java.math.BigDecimal;
import java.io.Serializable;
import java.util.Date;

/**
 * 
 * 
 * @author zh
 * @email 296588519@qq.com
 * @date 2018-08-03 10:29:41
 */
@TableName("erp_merchant_apply_cash")
public class MerchantApplyCashEntity implements Serializable {
	private static final long serialVersionUID = 1L;

	/**
	 * 
	 */
	@TableId
	private Integer id;
	/**
	 * 联动提现单号
	 */
	private String payNo;

	private String applyPayId;
	/**
	 * 商户id
	 */
	private Integer sellerId;

	/**
	 * 商户名称
	 */
	private String merchantName;
	/**
	 * 商户类型 (0 小b  1工厂)
	 */
	private Integer merchantType;
	/**
	 * 提现类型 normal 一般 ,allot 分配
	 */
	private String applyType;
	/**
	 * 申请状态(0:待审核,1:审核通过打款中,2:已驳回,3:打款成功 4:打款失败)
	 */
	private Integer applyStatus;
	/**
	 * 申请提现金额
	 */
	private BigDecimal applyMoney;
	/**
	 * 申请提现汇费
	 */
	private BigDecimal applyFee;
	/**
	 * 预计到账日期
	 */
	private Date expectDate;
	/**
	 * 实际到账时间
	 */
	private Date actualTime;
	/**
	 * 申请人id
	 */
	private String applyUser;

	/**
	 * 申请时间
	 */
	private Date applyTime;
	/**
	 * 审核人id
	 */
	private String auditor;


	@TableField(exist = false)
	private String auditorName;
	/**
	 * 审核时间
	 */
	private Date auditTime;
	/**
	 * 备注
	 */
	private String remark;
	/**
	 * 删除标记(0: 有效 1: 删除)
	 */
	private Integer delFlag;

	/**
	 * 设置：
	 */
	public void setId(Integer id) {
		this.id = id;
	}
	/**
	 * 获取：
	 */
	public Integer getId() {
		return id;
	}
	/**
	 * 设置：联动提现单号
	 */
	public void setPayNo(String payNo) {
		this.payNo = payNo;
	}
	/**
	 * 获取：联动提现单号
	 */
	public String getPayNo() {
		return payNo;
	}

	public Integer getSellerId() {
		return sellerId;
	}

	public void setSellerId(Integer sellerId) {
		this.sellerId = sellerId;
	}

	/**
	 * 设置：商户类型 (0 小b  1工厂)
	 */
	public void setMerchantType(Integer merchantType) {
		this.merchantType = merchantType;
	}
	/**
	 * 获取：商户类型 (0 小b  1工厂)
	 */
	public Integer getMerchantType() {
		return merchantType;
	}
	/**
	 * 设置：提现类型 normal 一般 ,allot 分配
	 */
	public void setApplyType(String applyType) {
		this.applyType = applyType;
	}
	/**
	 * 获取：提现类型 normal 一般 ,allot 分配
	 */
	public String getApplyType() {
		return applyType;
	}

	public String getApplyTypeText() {
		return this.applyType == null? null : EnumUtil.getEnumByCode(ApplyTypeEnum.class, this.applyType).toDescribe();
	}

	/**
	 * 设置：申请状态(0:待审核,1:审核通过打款中,2:已驳回,3:打款成功 4:打款失败)
	 */
	public void setApplyStatus(Integer applyStatus) {
		this.applyStatus = applyStatus;
	}
	/**
	 * 获取：申请状态(0:待审核,1:审核通过打款中,2:已驳回,3:打款成功 4:打款失败)
	 */
	public Integer getApplyStatus() {
		return applyStatus;
	}

	public String getApplyStatusText() {
		return EnumUtil.getEnumByCodeInt(ApplyStatusEnum.class, this.applyStatus).toDescribe();
	}
	/**
	 * 设置：申请提现金额
	 */
	public void setApplyMoney(BigDecimal applyMoney) {
		this.applyMoney = applyMoney;
	}
	/**
	 * 获取：申请提现金额
	 */
	public BigDecimal getApplyMoney() {
		return applyMoney;
	}
	/**
	 * 设置：申请提现汇费
	 */
	public void setApplyFee(BigDecimal applyFee) {
		this.applyFee = applyFee;
	}
	/**
	 * 获取：申请提现汇费
	 */
	public BigDecimal getApplyFee() {
		return applyFee;
	}
	/**
	 * 设置：预计到账日期
	 */
	public void setExpectDate(Date expectDate) {
		this.expectDate = expectDate;
	}
	/**
	 * 获取：预计到账日期
	 */
	public Date getExpectDate() {
		return expectDate;
	}
	/**
	 * 设置：实际到账时间
	 */
	public void setActualTime(Date actualTime) {
		this.actualTime = actualTime;
	}
	/**
	 * 获取：实际到账时间
	 */
	public Date getActualTime() {
		return actualTime;
	}
	/**
	 * 设置：申请时间
	 */
	public void setApplyTime(Date applyTime) {
		this.applyTime = applyTime;
	}
	/**
	 * 获取：申请时间
	 */
	public Date getApplyTime() {
		return applyTime;
	}

	public String getApplyUser() {
		return applyUser;
	}

	public void setApplyUser(String applyUser) {
		this.applyUser = applyUser;
	}

	public String getAuditor() {
		return auditor;
	}

	public void setAuditor(String auditor) {
		this.auditor = auditor;
	}

	/**
	 * 设置：审核时间
	 */
	public void setAuditTime(Date auditTime) {
		this.auditTime = auditTime;
	}
	/**
	 * 获取：审核时间
	 */
	public Date getAuditTime() {
		return auditTime;
	}
	/**
	 * 设置：备注
	 */
	public void setRemark(String remark) {
		this.remark = remark;
	}
	/**
	 * 获取：备注
	 */
	public String getRemark() {
		return remark;
	}
	/**
	 * 设置：删除标记(0: 有效 1: 删除)
	 */
	public void setDelFlag(Integer delFlag) {
		this.delFlag = delFlag;
	}
	/**
	 * 获取：删除标记(0: 有效 1: 删除)
	 */
	public Integer getDelFlag() {
		return delFlag;
	}

	public String getMerchantName() {
		return merchantName;
	}

	public void setMerchantName(String merchantName) {
		this.merchantName = merchantName;
	}



	public String getApplyPayId() {
		return applyPayId;
	}

	public void setApplyPayId(String applyPayId) {
		this.applyPayId = applyPayId;
	}
}
